<?php // no direct access
defined('_JEXEC') or die('Restricted access'); 

// Catturo itemMenu raggiunto
global $Itemid;
$itemMenu = $mainframe -> getMenu() -> getItem($Itemid);

// Caso borse di studio
if(in_array(65, $itemMenu -> tree)) {
	include("inner-borse.php");
	
// Caso volotariato, eventi e sport
} else if(in_array(101, $itemMenu -> tree) || in_array(81, $itemMenu -> tree) || in_array(82, $itemMenu -> tree)) {
	include("inner-eventi.php");
	
} else {
?>
	
	<div class="separatore"></div>
	<div class="inner-list">
		<?php 
		echo "<h3>" . $module -> title . "</h3>";
		foreach ($list as $item) :
			?>  
			<p>
			<a href="<?php echo $item->link; ?>&amp;layout=extra"><strong><?php echo $item->title ?></strong></a><br/>
			<?php 
			$text = strip_tags($item->text);
			echo $text . "<br/>";
			?>
			<a href="<?php echo $item->link; ?>&amp;layout=extra" class="forward"><?php echo JText :: _ ("readmore") ?></a>
			</p> 
			<?php
		endforeach; 
		?>
	</div>

<?php
}